class MemberCard < ActiveRecord::Base
	belongs_to :customer
	has_many :member_card_details

	def recharge(account, coupon)
		update_attributes(account: self.account+account.to_i, coupon: self.coupon+coupon.to_i)
	end
end
